// app.js
App({
  onLaunch() {
    const windowInfo = wx.getWindowInfo()
    // 获取状态栏高度
    this.globalData.statusBarHeight = windowInfo.statusBarHeight
    // 获取内容高度
    this.globalData.contentHeight = windowInfo.screenHeight - this.globalData.statusBarHeight - 44
  },
  globalData: {
    statusBarHeight: 20,
    contentHeight: 0,
  }
})
